#!D:\Python27\python.exe
# -*- coding: utf-8 -*-
'''
    Test Sessions

    :copyright: (c) 2014 by Duxin.
'''
import sys
sys.path.append('..')

import sessions
import unittest

class TestSessions(unittest.TestCase):
    
    def setUp(self):
        self.session = sessions.Session()
    
    def tearDown(self):
        pass
    
    def test_get_attribute(self):
        self.session.set_attribute('test', 1)
        self.assertEqual(self.session.get_attribute('test'), 1)

if __name__ == '__main__':
    unittest.main()
